#!/bin/bash
exec 8>&1
exec > log.txt
date
df
echo "-----hello-------"
exec 1>&8 8>&-
date
df
echo "hello"